import request from '@/utils/request'

// 查询计划调整记录列表
export function listAdjust(query) {
  return request({
    url: '/system/adjust/list',
    method: 'get',
    params: query
  })
}

// 查询计划调整记录详细
export function getAdjust(adjustId) {
  return request({
    url: '/system/adjust/' + adjustId,
    method: 'get'
  })
}

// 新增计划调整记录
export function addAdjust(data) {
  return request({
    url: '/system/adjust',
    method: 'post',
    data: data
  })
}

// 修改计划调整记录
export function updateAdjust(data) {
  return request({
    url: '/system/adjust',
    method: 'put',
    data: data
  })
}

// 删除计划调整记录
export function delAdjust(adjustId) {
  return request({
    url: '/system/adjust/' + adjustId,
    method: 'delete'
  })
}
